package gamagora.game.world.maps.game
{
	import gamagora.game.world.maps.OSMap;
	import gamagora.game.entity.*;

	public class OSMap4 extends OSMap
	{
		public function OSMap4()
		{
			super();
			
			var ground:OSGround = new OSGround(0, 760, 260, 320, 0, false);
			ground.setNoErosionDown([195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207]);
			ground.setNoErosionLeft([0, 13, 26, 39, 52, 65, 78, 91, 104, 117, 130, 143, 156, 169, 182, 195]);
			ground.setNoErosionRight([12, 25, 38, 51, 64, 77, 90, 103, 116, 129, 142, 155, 168, 181, 194, 207]);
			ground.erode();
			add(ground);
			
			var bouncePillar:OSEntity = new OSEntity(NOTHING, 60, 740); // +30 +20
			bouncePillar.makeGraphic(10, 24, 0xff000000);
			addBackground(bouncePillar);
			
			bouncePillar = new OSEntity(NOTHING, 180, 740); // +150 + 20
			bouncePillar.makeGraphic(10, 24, 0xff000000);
			addBackground(bouncePillar);
			
			ground = new OSGround(30, 720, 200, 20, 0, true);
			ground.setBorders(true, true);
			add(ground);
			
			ground = new OSGround(260, 600, 20, 480, 0, false);
			ground.setNoErosionDown([23]);
			ground.setNoErosionLeft([8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23]);
			ground.setNoErosionRight([15, 16, 17, 18, 19, 20, 21, 22, 23]);
			ground.erode();
			add(ground);
			
			add(new OSBridge(280, 620, 13, 5, false));
			
			add(new OSCage(280, 896, false));
			
			ground = new OSGround(280, 960, 520, 120, 0, false);
			ground.setNoErosionUp([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25]);
			ground.setNoErosionDown([130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155]);
			ground.setNoErosionLeft([0, 26, 52, 78, 104, 130]);
			ground.setNoErosionRight([25, 51, 77, 103, 129, 155]);
			ground.erode();
			add(ground);
			
			add(new OSCage(400, 836, false));
			
			add(new OSCage(540, 896, false));
			
			ground = new OSGround(800, 600, 160, 480, 0, false);
			ground.setNoErosionDown([184, 185, 186, 187, 188, 189, 190, 191]);
			ground.setNoErosionLeft([144, 152, 160, 168, 176, 184]);
			ground.setNoErosionRight([7, 15, 23, 31, 39, 47, 55, 63, 71, 79, 87, 95, 103, 111, 119, 127, 135, 143, 151, 159, 167, 175, 183, 191]);
			ground.erode();
			add(ground);
		}
	}
}
